﻿<%@ Page Title="Home Page" Language="C#" AutoEventWireup="True" %>
<%@ Import Namespace="System.Data" %>

<html>

<head runat="server">
<title></title>
<link href="grid.css" rel="stylesheet" type="text/css"/>
</head>

<body>
<h3>Текущая дислокация</h3>

    <form id="form1" runat="server">

        <asp:GridView 
            ID="GridView1" 
            runat="server" 
            DataSourceID="ObjectDataSource1"                       
            BorderColor="#000000" 
            BorderStyle="Groove"                        
            CellPadding="5"
            Font-Names="Verdana" 
            Font-Size="Small"
            PageSize="15"
            AllowPaging="true"
            AllowSorting="True"
            AutoGenerateColumns="true"
            enablesortingandpagingcallbacks="true" 
            SortedAscendingHeaderStyle-CssClass="sortasc" 
            SortedDescendingHeaderStyle-CssClass="sortdesc" /> 

        <asp:ObjectDataSource 
            ID="ObjectDataSource1" 
            runat="server" 
            SelectMethod="SortData"
            TypeName="Dislocations2.App_Code.Disl"
            SortParameterName="SortParam" 
        />

    </form>

</body>
</html>
